<?php

namespace App\Models;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class ApprovalLog extends Model
{
    use SoftDeletes;

    protected $table = 'approval_log';

    protected $fillable = [
        'list_id',
        'apply_user_id',
        'step',
        'apply_result',
        'approval_reason',
        'approval_time',
    ];

    public function user()
    {
        return $this->hasOne(User::class, 'id', 'apply_user_id');
    }
}
